//
//  OrganizationCell.m
//  Utils
//
//  Created by enghou on 2018/5/1.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "SoceityOrganization.h"

@interface SoceityOrganization()
@property (weak, nonatomic) IBOutlet UIImageView *titleImage;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;

@property (weak, nonatomic) IBOutlet UILabel *weatherLabel;

@property (weak, nonatomic) IBOutlet UILabel *addressLabel;


@end

@implementation SoceityOrganization

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setModel:(SoceityItemModel *)model{
    _model = model;
    [self.titleImage sd_setImageWithURL:[NSURL URLWithString:_model.headimage] placeholderImage:[UIImage imageNamed:@"icon_enterprise1"]];
    self.titleLabel.text = _model.title;
    self.weatherLabel.text = [NSString stringWithFormat:@"社会组织名称类型: %@",_model.type];
//    self.typeLabel.text = _model.type;
    self.addressLabel.text = [NSString stringWithFormat:@"办公地址:%@",_model.address];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
